SureCart\Support\Blocks\TemplateUtilityService A

Total Complexity 59
Dependencies 6
Dependents 2
Total lines 444
Lines of code 224
Logical lines of code 121
Comment lines 171
Methods 18
Properties 3

Methods 18

Method Rating Maintainability Complexity Lines of code
buildTemplateResultsFromPost()
A
47 7 35
injectThemeAttributeInContent()
S
54 6 22
buildTemplateResultFromFile()
S
52 6 22
__construct()
S
53 5 22
flattenBlocks()
S
56 5 20
getThemeTemplatePath()
S
58 4 15
createNewBlockTemplateObject()
S
57 4 15
getTemplatePaths()
S
62 3 11
removeThemeTemplatesWithCustomAlternative()
S
55 2 23
isFSETheme()
S
66 3 9
supportsBlockTemplates()
S
77 3 3
getTemplatesDirectory()
S
79 2 3
getBlockTemplateTitle()
S
70 2 6
getBlockTemplateDescription()
S
71 2 6
templateHasTitle()
S
78 2 3
generateTemplateSlugFromPath()
S
79 1 3
themeHasTemplate()
S
79 1 3
themeHasTemplatePart()
S
79 1 3